package com.grad.webstudy.dao;

import com.grad.webstudy.model.Authority;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface AuthorityDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Authority record);

    int insertSelective(Authority record);

    Authority selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Authority record);

    int updateByPrimaryKey(Authority record);


    /**
     * 查询权限详情
     * @param authIds
     * @return
     */
    List<String> queryAuthDeatilByIds(Set<String> authIds);

    /**
     * 查询全部权限信息
     * @return
     */
    List<Authority>  queryAllAuth();
}